CODE_SUCCESS = 200
CODE_FAILURE = 400
CODE_PARAM_ERROR = 401
CODE_PERMISSION_DENIED = 402
CODE_SERVER_ERROR = 500

CODE_TOKEN_INVALID = 403
CODE_DATA_CHANGED = 404

# project 40000-41000
CODE_PROJECT_NOT_EXIST = 40000

# text 41000-42000
CODE_TEXT_NOT_EXIST = 41000
CODE_TEXT_CONTENT_INCOMPLETE = 41002
CODE_TEXT_ACTION_ERROR = 41003
CODE_TEXT_SELECTED_ERROR = 41004
CODE_TEXT_GPT_GENERATE_ERROR = 41300
CODE_TEXT_IDEA_NOT_EXIST = 41400

CODE_AVATAR_NOT_FOUND = 42001
CODE_SPEAKER_NOT_FOUND = 42002

# draft
# draft base 43000 - 43099
CODE_DRAFT_NOT_EXISTS = 43000
# draft text 43101 - 43299
# draft media 43201 - 43299
# draft media 43301 - 43399
CODE_EXIST_USER_DRAFT_VIDEO_BACKGROUND = 43301 # 用户已上传自定义背景
CODE_DRAFT_MEDIA_FAIL = 43201  # 素材上传失败
# draft video 43301 - 43399


# user 49000-50000
CODE_USER_NOT_FIND = 49001  # 用户不存在
CODE_USER_PASSWORD_FAIL = 49002  # 用户密码错误
CODE_USER_IMAGE_FAIL = 49003  # 图片后缀不符合要求
CODE_USER_CONTACT_FAIL = 49004  # 联系方式格式为手机号或微信号
CODE_USER_MAXIMUM_NUMBER_OF_IMAGES_EXCEED = 49005  # 图片超出最大传输数量
CODE_USER_DESCRIPTION_LENGTH_ERROR = 49006  # 详情超出文字限制数量
CODE_USER_PHONE_OR_EMAIL = 49007
CODE_USER_PASSWORD_LENGTH_FAIL = "密码长度为6到20之间"
CODE_TOKEN_REQUIRE = 49009
CODE_PHONE_DUPLICATE = "手机号重复"
CODE_PHONE_DO_NOT_MATCH = "手机号格式错误"
CODE_NOTIFY_CHANNEL_INVALID = 49012  # 没用©
CODE_PHONE_OR_EMAIL_NOT_EXISTS = 49013
CODE_EMAIL_SEND_FAIL = 49014
CODE_PARAMETER_ERROR = 49015
CODE_REGISTER_SEND_REACH_LIMIT = 49016
CODE_PHONE_SEND_FAILURE = 49017
CODE_VALIDATE_CODE_SEND_FREQUENTLY = 49018
CODE_REGISTER_VALIDATE_CODE_NOT_EXISTS = 49019
CODE_REGISTER_VALIDATE_CODE_EXPIRED = 49020
CODE_REGISTER_VALIDATE_CODE_ERROR = 49021
CODE_USER_NOT_BING_EMAIL = 49022
CODE_USER_NOT_BING_PHONE = 49023
CODE_QRCODE_CREATE_ERROR = 49024
CODE_ACCOUNT_PASSWORD_INVALID = 49025
CODE_ACCOUNT_EMAIL_INVALID = 49026
CODE_ACCOUNT_EMAIL_BIND_BY_OTHER = 49027
CODE_ACCOUNT_WEIXIN_BIND_BY_OTHER = 49028
CODE_ACCOUNT_EMAIL_BIND_NOT = 49029
CODE_ACCOUNT_UPDATE_EMAIL_ERROR_STEP = 49030
CODE_ACCOUNT_PHONE_INVALID = 49031
CODE_ACCOUNT_PHONE_BIND_BY_OTHER = 49032
CODE_ACCOUNT_PHONE_BIND_NOT = 49033
CODE_ACCOUNT_UPDATE_PHONE_ERROR_STEP = 49034
CODE_ACCOUNT_WEIXIN_BIND_NOT = 49035
CODE_ACCOUNT_PASSWORD_NOT_MATCH = 49036
CODE_ACCOUNT_OLD_AND_NEW_PASSWORD_SAME = 49037
CODE_ACCOUNT_VERIFY_PASSWORD_NOT_SAME = 49038
CODE_ACCOUNT_REGISTER_WEIXIN_FAIL = 49040
RESTRICT_SMS_UPDATE_PASSWORD_REACH_LIMIT = 49041
RESTRICT_VALIDATE_PASSWORD_REACH_LIMIT = ""
CODE_PHONE_NOT_EXISTS = 49043
CODE_VISITORS_ARE_BANNED = 49044
CODE_VALIDATE_CODE_NOT_EXISTS = 4945
CODE_VALIDATE_CODE_EXPIRED = 49046
CODE_VALIDATE_CODE_ERROR = 49047
CODE_VALIDATE_NEW_PHONE_CODE_NOT_EXISTS = 49048
CODE_VALIDATE_NEW_PHONE_CODE_EXPIRED = 49049
CODE_VALIDATE_NEW_PHONE_CODE_ERROR = 49050
